package com.bdqn.pojo;

import org.aspectj.lang.JoinPoint;

//课后实体类
public class Equip {            //装备
    private String name;        //装备名称
    private String type;        //装备类型，头盔铠甲等
    private Long speedPlus;     //攻速增效
    private Long attackPlus;   //攻击增效
    private Long defencePlus; //防御增效

    public Equip() {
    }

    public Equip(String name, String type, Long speedPlus, Long attackPlus, Long defencePlus) {
        this.name = name;
        this.type = type;
        this.speedPlus = speedPlus;
        this.attackPlus = attackPlus;
        this.defencePlus = defencePlus;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Long getSpeedPlus() {
        return speedPlus;
    }

    public void setSpeedPlus(Long speedPlus) {
        this.speedPlus = speedPlus;
    }

    public Long getAttackPlus() {
        return attackPlus;
    }

    public void setAttackPlus(Long attackPlus) {
        this.attackPlus = attackPlus;
    }

    public Long getDefencePlus() {
        return defencePlus;
    }

    public void setDefencePlus(Long defencePlus) {
        this.defencePlus = defencePlus;
    }

    public void befor(JoinPoint jp){
        Equip y = (Equip) jp.getArgs()[0];
        if(y.getType().equals("指环")){
            y.setName("紫色梦幻"+y.getName());
        }
        jp.getArgs()[0]=y;
    }
}
